package com.guoxin.designpattern.chapter4;

/**
 * @author guoxin
 * @date 2019/9/3
 */
public class BinaryObserver extends Observer {

    protected BinaryObserver(Subject subject) {
        super(subject);
    }

    @Override
    protected void update() {
        System.out.println("Binary observer :"+Integer.toBinaryString(subject.getState()));
    }
}
